layui.define(['laytpl', 'layer', 'element', 'util'], function(exports){
  exports('setter', {
    container: 'LAY_app' //容器ID
    ,base: layui.cache.base //记录layuiAdmin文件夹所在路径
    ,views: layui.cache.base + 'views/' //视图所在目录
    ,entry: 'Newsku/index' //默认视图文件名
    ,engine: '.html' //视图文件后缀名
    ,pageTabs: false //是否开启页面选项卡功能。单页版不推荐开启
    
    ,name: 'sku'
    ,tableName: 'app' //本地存储表名
    ,MOD_NAME: 'admin' //模块事件名
    
    ,debug: true //是否开启调试模式。如开启，接口异常时会抛出异常 URL 等信息
    
    ,interceptor: true //是否开启未登入拦截
    
    //自定义请求字段
    ,request: {
      tokenName: 'access_token' //自动携带 token 的字段名。可设置 false 不携带。
    }
    
    //自定义响应字段
    ,response: {
      statusName: 'code' //数据状态的字段名称
      ,statusCode: {
        ok: 1 //数据状态一切正常的状态码
        ,logout: 1001 //登录状态失效的状态码
      }
      ,msgName: 'msg' //状态信息的字段名称
      ,dataName: 'data' //数据详情的字段名称
    }
    
    //独立页面路由，可随意添加（无需写参数）
    ,indPage: [
      '/User/login' //登入页
      ,'/user/reg' //注册页
      ,'/user/forget' //找回密码
      ,'/template/tips/test' //独立页的一个测试 demo
    ]
    
    //扩展的第三方模块
    ,extend: [
      'echarts', //echarts 核心包
      'echartsTheme' //echarts 主题
    ]
    ,bg:{
      "1":{"bg":['#e1f8e3','#b8eabb','#f2f2f2','#399e3f'],'name':'1'},
      "#b8eabb":{"bg":['#e1f8e3','#b8eabb','#60be66','#399e3f'],'name':'#b8eabb'},
      "#ECDFF4":{"bg":['#FDFBFE','#ECDFF4','#AE87C5','#8759A3'],'name':'#ECDFF4'},
      "#FFB1B1":{"bg":['#FFD6D6','#FFB1B1','#DA5858','#B83030'],'name':'#FFB1B1'},
      "#90DBCC":{"bg":['#C6F1E9','#90DBCC','#3DA08D','#248D78'],'name':'#90DBCC'},
      "#FFFEFA":{"bg":['#FFFFFF','#FFFEFA','#D4D1B6','#B3AE87'],'name':'#FFFEFA'},
      "#55BAE5":{"bg":['#82CDEE','#55BAE5','#0A98D5','#0474A5'],'name':'#55BAE5'},
      "#CBBFF2":{"bg":['#EFEBFD','#CBBFF2','#816BC8','#6048AB'],'name':'#CBBFF2'},
      "#CDE2E2":{"bg":['#F2F8F8','#CDE2E2','#689B99','#41817F'],'name':'#CDE2E2'},
      "#BDDDF4":{"bg":['#EEF7FE','#BDDDF4','#65A2CD','#4181AE'],'name':'#BDDDF4'},
      "#FFCCC0":{"bg":['#FFE6E0','#FFCCC0','#CF745E','#A54731'],'name':'#FFCCC0'},
      "#94E9CF":{"bg":['#CAF8EA','#94E9CF','#43BD98','#25A47E'],'name':'#94E9CF'},
      "#F0FCF4":{"bg":['#FFFFFF','#F0FCF4','#A5DDB8','#74C18E'],'name':'#F0FCF4'},
      "#1F1F1F":{"bg":['#FFFFFF','#F8F8FF','#778899','#708090'],'name':'#1F1F1F'},
      "#080808":{"bg":['#FFFFFF','#EBEBEB','#4F4F4F','#080808'],'name':'#080808'},
      "#8FBC8F":{"bg":['#FFFFFF','#F5F5F5','#4F4F4F','#8FBC8F'],'name':'#8FBC8F'},
      "#708090":{"bg":['#FFFFFF','#F5F5F5','#4F4F4F','#708090'],'name':'#708090'},
      "#4F4F4F":{"bg":['#FFFFFF','#F5F5F5','#8FBC8F','#708090'],'name':'#4F4F4F'},
      "#4F4F41":{"bg":['#FFFFFF','#F5F5F5','#8FBC8F','#4F4F4F'],'name':'#4F4F41'}
    }
    //主题配置
    ,theme: {
      //内置主题配色方案
      color: [{
        main: '#252834' //主题色
        ,selected: '#5a8bff6b' //选中色
        ,alias: 'default' //默认别名
      }]
      
      //初始的颜色索引，对应上面的配色方案数组索引
      //如果本地已经有主题色记录，则以本地记录为优先，除非请求本地数据（localStorage）
      ,initColorIndex: 0
    }
  });
});
